cmake_minimum_required(VERSION 3.0)

project(fortran_regex LANGUAGES CXX Fortran)

set (CMAKE_Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}")

add_library(fortran_regex regex_master.cpp regex.f90)
if (APPLE)
  target_link_libraries(fortran_regex stdc++)
elseif (UNIX)
  target_link_libraries(fortran_regex stdc++)
endif ()
